package w83a.w83aOperacionesPaso.w83aPreavisos;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import es.ejie.frmk.presentacion.operacion.paso.Q70ActionPasoOP;
import es.ejie.frmk.presentacion.sesiondatos.Q70ContextoEJIE;

// TODO: Auto-generated Javadoc
/**
 * The Class W83aTablaAgrupacionesOP.java.
 *
 * @author Deusto Sistemas
 */
public class W83aIraActasOPAction extends Q70ActionPasoOP{

	
	protected void processOP(Q70ContextoEJIE contexto, ActionErrors errores, ActionMapping mapping,
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		//Guardamos la accion en el contexto

		
	}

	protected ActionForward processForward(Q70ContextoEJIE contexto, ActionErrors errors, ActionMapping mapping, 
			ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		
		String tamanyoListaResults = (String)contexto.get("tamanyoListaResults");
		contexto.set("tamanyoListaResults","1");
		contexto.set("tamanyoListaResultsAux",tamanyoListaResults);
		
		
		contexto.set("strTitleKey","comun.acta");	
		contexto.set("migas","inicioportal.inicio.documelectoral.documentacionpreaviso.documentacionacta");
		if (contexto.get("codSelecActa")!=null&&!("").equals(contexto.get("codSelecActa"))){
			contexto.set("codSelec",contexto.get("codSelecActa"));
			contexto.set("codSelecActa", new String());//NOPMD
		}
		if(!"A".equals(((String)contexto.get("camino")).substring(((String)contexto.get("camino")).length()-1, ((String)contexto.get("camino")).length()))){
			contexto.set("camino", (String)contexto.get("camino")+"A");
		}
		return mapping.findForward("ok");
	}

}
